﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    public class SystemUser:IAggregateRoot
    {
        public int ID { get; set; }//用户ID
        [MaxLength(50)]
        [Column(TypeName = "varchar")]
        public string LoginName { get; set; } //用户登录帐号
        [MaxLength(50)]
        [Column(TypeName = "varchar")]
        public string PassWord { get; set; } //登录密码
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string RealName { get; set; } //真实姓名
        public virtual SystemBranch BranchID { get; set; }//部门编号
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string Position { get; set; }//职位
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string Phone { get; set; }//手机号码
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string Telephone { get; set; }//固定电话
        public DateTime CreateDate { get; set; }//固定电话
        public bool IsUse { get; set; }
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string dock { get; set; }
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string wallpapertype { get; set; }
        public int wallpaperid { get; set; }
        [MaxLength(2)]
        [Column(TypeName = "varchar")]
        public string appxy { get; set; }
        [MaxLength(500)]
        [Column(TypeName = "varchar")]
        public string dockappid { get; set; }
        [MaxLength(500)]
        [Column(TypeName = "varchar")]
        public string desk1appid { get; set; }
        [MaxLength(500)]
        [Column(TypeName = "varchar")]
        public string desk2appid { get; set; }
        [MaxLength(500)]
        [Column(TypeName = "varchar")]
        public string desk3appid { get; set; }
        [MaxLength(500)]
        [Column(TypeName = "varchar")]
        public string desk4appid { get; set; }
        [MaxLength(500)]
        [Column(TypeName = "varchar")]
        public string desk5appid { get; set; }
    }
}
